package com.yongbao.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yongbao.common.PageInfo;
import com.yongbao.model.domain.DishOrderDishDO;
import com.yongbao.model.request.DishOrderDishRequest;
import com.yongbao.model.vo.DishOrderDishVO;
import com.yongbao.model.vo.DishVO;

import java.util.List;

/**
 * @author zhanghong
 */
public interface DishOrderDishService extends IService<DishOrderDishDO> {

    /**
     * 根据主键查询
     * @param id
     * @return
     */
    DishOrderDishVO getByKey(long id);
    /**
     * 分页查询，手动分页
     * @param request
     * @return
     */
    PageInfo<DishOrderDishVO> pageQuery(DishOrderDishRequest request);
    /**
     * 列表查询
     * @param request
     * @return
     */
    List<DishVO> listQuery(DishOrderDishRequest request);
    /**
     * 新增
     * @param request
     * @return
     */
    Boolean add(DishOrderDishRequest request);
    /**
     * 根据主键更新
     * @param request
     * @return
     */
    Boolean updateByKey(DishOrderDishRequest request);
    /**
     * 根据主键删除
     * @param ids
     * @return
     */
    Boolean delByIds(String ids);
}
